package com.rowline.admin.module.study.rpc;

import org.springframework.beans.factory.FactoryBean;

/**
 * ClassName:ReferenceBean
 * Created by 245167
 * on 2018/4/27  27:21
 * description:
 */
public class ReferenceBean<T> extends ReferenceConfig<T> implements FactoryBean{
    @Override
    public Object getObject() throws Exception {
        return get();
    }

    @Override
    public Class<?> getObjectType() {
        return getInterfaceClass();
    }

    @Override
    public boolean isSingleton() {
        return true;
    }
}
